﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace DiIoc.Signal.ZenjectSignal
{
    public class PlayerUIController : MonoBehaviour
    {
        private string _username="nobody";
        private int _health=0;

        public void UpdateHealth(PlayerHealthSignal playerHealthSignal)
        {
            _username = playerHealthSignal.Username;
            _health = playerHealthSignal.Health;
        }
        private void OnGUI()
        {
            GUILayout.Label($"PLAYER {_username}'s health is {_health}");
        }
    }

}
